SRC = $(wildcard *.c)
BIN = pro.exe 
CC = gcc 
OBJ = $(SRC:.c=.o)
LFLAGS = -o
FLAGS = -c
RM = rm -f

$(BIN):$(OBJ)
	$(CC) $(LFLAGS) $@ $^

%.o:%.c
	$(CC) $(FLAGS) $< $(LFLAGS) $@

.PHONY:clean
clean:
	$(RM) $(BIN) $(OBJ)

